package cn.com.cfae.iras.doc.analyze.service.consistencyregulation;

import cn.com.cfae.iras.doc.analyze.beans.consistency.InvestorProtectionClause;
import cn.com.cfae.iras.doc.analyze.dao.consistencyregulation.ConsistencyRegulationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Created by zouxun on 2018/11/8
 */
@Service
public class ConsistencyRegulationServiceImpl implements ConsistencyRegulationService {

    @Autowired
    ConsistencyRegulationMapper consistencyRegulationMapper;

    /**
     * @desc 投资者保护条款入库
     * @param investorProtectionClause
     */
    @Override
    public void addInsuranceClause(InvestorProtectionClause investorProtectionClause) {
        consistencyRegulationMapper.addInsuranceClause(investorProtectionClause);
    }

    /**
     * 删除已存在的保护条款，录入新的数据
     * @param params
     */
    @Override
    public void deleteInsuranceClause(Map params) {
        consistencyRegulationMapper.deleteInsuranceClause(params);
    }
}
